package com.distribute.framework.core.lsf;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

import com.distribute.framework.core.lsf.entity.AppInfo;
import com.distribute.framework.core.web.helper.Utils;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;

public class LsfServer implements InitializingBean,FactoryBean{

	String appUrl;//本地服务地址
	String appTitle;//本地服务标题
	Set<String> beans = new HashSet();//本地开放的服务接口列表
	Lsf lsf=null;
	
	public void afterPropertiesSet() throws Exception {
		lsf.getBeans().addAll(beans);
		lsf.initLsf();
		initServer();
	}
	
	/**
	 * 注册服务
	 */
	public static void initServer(){
		
	}

	public Object getObject() throws Exception {
		return this;
	}

	public Class getObjectType() {
		return LsfServer.class;
	}

	public boolean isSingleton() {
		return false;
	}

	public Set<String> getBeans() {
		return beans;
	}

	public void setBeans(Set<String> beans) {
		this.beans = beans;
	}

	public Lsf getLsf() {
		return lsf;
	}

	public void setLsf(Lsf lsf) {
		this.lsf = lsf;
	}

	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

}